cURL
curl --request GET \ --url https://app.masivo.ai/api/storefront/v1/customers/{id}/consent \ --header 'Authorization: Bearer <token>'
{ "data": { "consent": { "consent_string": "COvFyGBOvFyGBAbAAAENAPCAAOAAAAAAAAAAAEEUACCKAAA", "version": "2.0", "consent_timestamp": "2023-11-07T05:31:56Z", "customer_id": "<string>", "purposes": { "behavioral_campaigns": true, "coupon_campaigns": true, "punchcard_campaigns": true, "email_marketing": true, "push_notifications": true, "link_tracking": true }, "vendors": { "vendor_123": true, "vendor_456": false } } } }
Get customer consent preferences. If consent is null or empty, the API returns default consent values with all purposes set to true.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
The customer unique identifier in your system
Customer consent
Show child attributes